package org.example.petitionplatformsystem.service;

import org.example.petitionplatformsystem.dao.model.Category;

import java.util.List;

public interface CategoryService {
    public void addCategory(Category category);

    public boolean deleteCategory(long id);

    public void updateCategory(Category category);

    public Category getCategoryById(long id);

    public List<Category> getAllCategories();

    boolean isCategoryExist(String name);
    public Category getCategoryByName(String name);
}
